<?php
require 'functions.php';

if (is_login()) {
	$actions = array('s1'=>'ps -ef', 's2'=>'ls -al');
	$action = $_GET['action'];
	if (!empty($action)) {
		$output = shell_exec($actions[$action]);
		$output = str_replace("\n", "<br>",$a);
		echo $output;
	}
}

?>
